#ifndef PROXYPAC_H
#define PROXYPAC_H

#include <QRegularExpression>
#include <QScriptEngine>
#include <QIODevice>
#include <QFile>
#include <QDebug>
#include <QScriptValue>
#include <QHostInfo>
#include <QHostAddress>
#include <QNetworkInterface>
using namespace std;

class ProxyPac
{
public:
    explicit ProxyPac();
    static QScriptValue dnsResolve(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue isPlainHostName(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue isInNet(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue myIpAddress(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue shExpMatch(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue localHostOrDomainIs(QScriptContext *context, QScriptEngine *engine);
    static QScriptValue dnsDomainIs(QScriptContext *context, QScriptEngine *engine);

};


#endif // PROXYPAC_H
